/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package datos;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Richard
 */
public class BaseDeDatos {
    
    public BaseDeDatos() {
    }
      
    public static Connection getConexion() throws SQLException{
        String driver = "com.mysql.jdbc.Driver";
        String url    = "jdbc:mysql://163.178.107.130:3306/schedsys";
        String username = "adm";
        String password = "saucr.092";       
        System.setProperty(driver,"");

        Connection conexion= DriverManager.getConnection(url,username,password);
        return conexion;
    }  
}
